<?php 
use Admin\Model\UserModel;
//采集订阅
	if (!file_exists('collect_user.lock')) {
		file_put_contents('collect_user.lock',time());
		$limit=24;
		$user=new UserModel();
		//查找10个达人
		for ($i=0;$i<10;$i++){
			$u_d=$user->where(array('is_follow'=>0,'follow'=>array('between','100,400')))->find();
			$total=$u_d['follow'];
			$uk=$u_d['uk'];
			$totalpage=ceil($total/$limit);
			for ($j=0;$j<$totalpage;$j++){
				$start=$j*$limit;
				file_put_contents('task_collect.txt','START:'.date('Y-m-d H:i:s').'<br/>',FILE_APPEND);
				$user->getFollow($uk, $start);
				file_put_contents('task_collect.txt','END:'.date('Y-m-d H:i:s').'<br/>#####<br/>',FILE_APPEND);
			}
			file_put_contents('task_collect.txt','BIG_END:'.date('Y-m-d H:i:s').'<br/>-----------------------<br/>',FILE_APPEND);
		}
		unlink('collect_user.lock');
	}

